@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  --foreground-rgb: 0, 0, 0;
  --background-rgb: 255, 255, 255;
  
  /* 主题色配色方案 */
  --primary: #69cac3;
  --primary-light: #8dd8d2;
  --primary-lighter: #b1e5e1;
  --primary-dark: #4fb5ad;
  --primary-darker: #359088;
  
  /* 辅助色 */
  --secondary: #c369ca;
  --accent: #69a3ca;
  --success: #69ca7b;
  --warning: #caa869;
  --error: #ca6969;
  
  /* 中性色 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* 自定义 Ant Design 主题色 */
.login-tabs .ant-tabs-tab {
  color: var(--gray-600) !important;
}

.login-tabs .ant-tabs-tab.ant-tabs-tab-active {
  color: var(--primary) !important;
}

.login-tabs .ant-tabs-ink-bar {
  background: var(--primary) !important;
}

.login-tabs .ant-tabs-tab:hover {
  color: var(--primary-light) !important;
}

/* 按钮主题色 */
.ant-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.ant-btn-primary:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}

.ant-btn-primary:focus {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* 输入框焦点色 */
.ant-input:focus,
.ant-input-focused {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(105, 202, 195, 0.2) !important;
}

/* 链接色 */
.ant-typography a {
  color: var(--primary) !important;
}

.ant-typography a:hover {
  color: var(--primary-light) !important;
}

/* 现代登录页面样式 */
.login-tabs-modern .ant-tabs-tab {
  color: #6b7280 !important;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.login-tabs-modern .ant-tabs-tab.ant-tabs-tab-active {
  color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.2);
}

.login-tabs-modern .ant-tabs-ink-bar {
  background: linear-gradient(90deg, #0d9488, #06b6d4) !important;
  height: 3px !important;
  border-radius: 2px;
}

.login-tabs-modern .ant-tabs-tab:hover {
  color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.05);
  border-color: rgba(13, 148, 136, 0.1);
}

.login-tabs-modern .ant-tabs-nav {
  margin-bottom: 32px !important;
}

.login-tabs-modern .ant-tabs-content-holder {
  padding: 0 !important;
}

/* 动画效果已移至 tailwind.config.ts */

/* 登录页面特定样式 */
.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #1f2937 0%, #0f766e 50%, #1f2937 100%);
}

.login-form-container {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #69cac3, #4fb5ad) 1;
}

.login-feature-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.login-feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

/* 响应式设计 */
@media (max-width: 1280px) {
  .max-w-6xl {
    max-width: 5xl !important;
  }
  
  .h-\[700px\] {
    height: 600px !important;
  }
}

@media (max-width: 1024px) {
  .max-w-6xl {
    max-width: 4xl !important;
    margin: 1rem !important;
  }
  
  .h-\[700px\] {
    height: auto !important;
    min-height: 600px !important;
    flex-direction: column !important;
  }
  
  .flex-1.flex.flex-col.justify-center {
    padding: 2rem !important;
    min-height: 300px !important;
  }
  
  .w-\[450px\] {
    width: 100% !important;
    min-height: 400px !important;
  }
}

@media (max-width: 768px) {
  .p-8 {
    padding: 1rem !important;
  }
  
  .rounded-2xl {
    border-radius: 1rem !important;
  }
  
  .flex-1.flex.flex-col.justify-center {
    padding: 1.5rem !important;
    min-height: 250px !important;
  }
  
  .text-4xl {
    font-size: 2rem !important;
  }
  
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .text-lg.opacity-90 {
    font-size: 1rem !important;
  }
}

@media (max-width: 640px) {
  .h-\[700px\] {
    min-height: 500px !important;
  }
  
  .text-4xl {
    font-size: 1.75rem !important;
  }
  
  .p-16 {
    padding: 1rem !important;
  }
  
  .mb-12 {
    margin-bottom: 1.5rem !important;
  }
}

body {
  color: rgb(var(--foreground-rgb));
  background: rgb(var(--background-rgb));
  min-height: 100vh;
}

.ant-layout {
  min-height: 100vh;

}
.ant-layout-sider-children{
  background:#fff;
}
.site-layout-content {
  background: #fff;
  padding: 24px;
  min-height: 280px;
}

.trigger {
  padding: 0 24px;
  font-size: 18px;
  line-height: 64px;
  cursor: pointer;
  transition: color 0.3s;
}

.trigger:hover {
  color: #1890ff;
}

.logo {
  height: 32px;
  margin: 16px;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}
